
package com.liuwei;

import org.junit.Assert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * spring-boot-demo-3-2
 * 
 * @author wei.liu
 */
@RestController
@RequestMapping("/")
public class IndexController {
	@Autowired
	ComputeService computeService;
	// @RequestParam 简单类型的绑定，可以出来get和post
	@RequestMapping("/index")
	public String get() {
//		return ""+computeService.add(1, 2);
		return "123";
	}
	

}
